/**
 * Copyright (c) 2014-2015, Suredy technology Co., Ltd. All rights reserved.
 * @author ZhangMaoren 
 * @since 2015年11月27日
 * @version 0.1
 */
package com.suredy.app.detection.entity;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.suredy.core.model.BaseModel;


/**
 * @author ZhangMaoren
 *
 */
@Entity
@Table(name = "T_DETECTION_COLORIMETRYITEM")
public class ColorimetryItemEntity extends BaseModel{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 4958391080146209508L;
	
	@Column(name = "SampleId")
	private String sampleId; //样品编号
	
	@Column(name = "SampleName")
	private String sampleName; //样品名称
	
	@Column(name = "Consumption")
	private Double consumption; //用量ml
	
	@Column(name = "DetectionValue")
	private Double detectionValue; //检测结果
	
	@Column(name = "Deprecated", columnDefinition = "int default 0")
	private Integer deprecated ; //废弃的检测结果
	
	@Column(name = "Description")
	private String description; //描述

	@ManyToOne(cascade = CascadeType.REFRESH)
	@JoinColumn(name = "ColorimetryId")
	private ColorimetryEntity colorimetry;
	
	/**
	 * @return the sampleId
	 */
	public String getSampleId() {
		return sampleId;
	}

	
	/**
	 * @param sampleId the sampleId to set
	 */
	public void setSampleId(String sampleId) {
		this.sampleId = sampleId;
	}

	
	/**
	 * @return the sampleName
	 */
	public String getSampleName() {
		return sampleName;
	}

	
	/**
	 * @param sampleName the sampleName to set
	 */
	public void setSampleName(String sampleName) {
		this.sampleName = sampleName;
	}

	
	/**
	 * @return the consumption
	 */
	public Double getConsumption() {
		return consumption;
	}

	
	/**
	 * @param consumption the consumption to set
	 */
	public void setConsumption(Double consumption) {
		this.consumption = consumption;
	}

	

	
	/**
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}

	
	/**
	 * @param description the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}


	



	
	
	/**
	 * @return the detectionValue
	 */
	public Double getDetectionValue() {
		return detectionValue;
	}


	
	/**
	 * @param detectionValue the detectionValue to set
	 */
	public void setDetectionValue(Double detectionValue) {
		this.detectionValue = detectionValue;
	}




	
	/**
	 * @return the deprecated
	 */
	public Integer getDeprecated() {
		return deprecated;
	}


	
	/**
	 * @param deprecated the deprecated to set
	 */
	public void setDeprecated(Integer deprecated) {
		this.deprecated = deprecated;
	}


	/**
	 * @return the colorimetry
	 */
	public ColorimetryEntity getColorimetry() {
		return colorimetry;
	}


	
	/**
	 * @param colorimetry the colorimetry to set
	 */
	public void setColorimetry(ColorimetryEntity colorimetry) {
		this.colorimetry = colorimetry;
	}
	
}
